package xsdcl;

import java.util.ArrayList;

public class FD
{
	public enum FDType
	{
		FD,MVD
	};
	
	private ArrayList<TreeNode> left;
	private TreeNode right;
	private FDType fdType;
	
	public FD(FDType fdType)
	{
		this.fdType = fdType;
		left = new ArrayList<TreeNode>();
	}
	
	public ArrayList<TreeNode> getLeft()
	{
		return left;
	}
	public void setLeft(ArrayList<TreeNode> left)
	{
		this.left = left;
	}
	public void putLeft(TreeNode left)
	{
		this.left.add(left);
	}
	
	public TreeNode getRight()
	{
		return right;
	}
	public void setRight(TreeNode right)
	{
		this.right = right;
	}
	public FDType getFdType()
	{
		return fdType;
	}
	public void setFdType(FDType fdType)
	{
		this.fdType = fdType;
	}

	
}
